﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ToolsLayer;
using System.Data;
using Webcar.BLL;

namespace Webcar.UI
{
    public partial class ReportPopView : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.IsPostBack) return;
            string gsid = this.Request.QueryString["id"];
            string sql = "select * from v_report where xh='" + gsid + "'";
            DataSet ds = DB.ExecuteDataset(sql);
            foreach (DataRow row in ds.Tables[0].Rows)
            {
                this.lblSendMan.Text = row["man_name"].ToString();
                this.lblSendTime.Text = row["ny"].ToString();
                this.lblContent.Text = row["content"].ToString();
                this.lblDeptName.Text = row["dept_name"].ToString();
                this.lblKind.Text = row["report_kind_name"].ToString();

            }
            InfoChecker ic = new InfoChecker();
            ic.SetInfoReaded(gsid, InfoCheckType.Report);
        }
    }
}
